let mongoose=require('./db')

let list=mongoose.Schema({
    name:String,
    img:String,
    price:String,
    num:Number,
    cid:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'cate'
    }
})
let listModel=mongoose.model('list',list,'list')

let cate=mongoose.Schema({
    cname:String,
})
let cateModel=mongoose.model('cate',cate,'cate')

module.exports={
    listModel,
    cateModel
}